package cn._2dland.net
{
	public class PartLoaderFactory
	{
		public function PartLoaderFactory() {
		}

		public static function createPartLoader(type:String):PartLoader {
			var loader:PartLoader = null;
			switch(type){
				case "sina":
					loader = new SinaPartLoader();
					break;
				case "qq":
					loader = new QQPartLoader();
					break;
				case "6cn":
					loader = new SixRoomsPartLoader();
					break;
				case "youku":
					loader = new YoukuPartLoader();
					break;
				case "tudou":
					loader = new TudouPartLoader();
					break;
				case "direct":
				case "other":
					loader = new DirectPartLoader();
					break;
			}
			return loader;
		}
	}
}